# -*- coding:utf-8 -*-
from django.core.handlers.wsgi import WSGIHandler


"""
    目前看来，django中存在两处调用，那么具体使用的目的呢？
    django/conf/project_template/project_name/wsgi.py:应该是开发环境中django自带那个执行调用环境的引擎入口
    django/core/servers/basehttp.py:应该是生产环境中调用的
"""
def get_wsgi_application():                     # 获取wsgi的应用
    """
    Django的WSGI支持的公共接口，已经返回一个可调用的WSGI。

    The public interface to Django's WSGI support. Should return a WSGI
    callable.

    Allows us to avoid making django.core.handlers.WSGIHandler public API, in
    case the internal WSGI implementation changes or moves in the future.

    """
    return WSGIHandler()                    # 创建一个WSGIHandler的实例对象
